package com.sc.pb_user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 运动效果分析表
 * </p>
 *
 * @author PBObserver
 * @since 2025-09-19 05:02:16
 */
@Getter
@Setter
@TableName("pb_sport_analysis")
public class PbSportAnalysis {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 逻辑外键，关联pb_user.id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 分析日期(yyyy-MM-dd)
     */
    @TableField("analysis_date")
    private Date analysisDate;

    /**
     * 当日跑步次数
     */
    @TableField("total_run_count")
    private Integer totalRunCount;

    /**
     * 当日总距离(公里)
     */
    @TableField("total_distance")
    private BigDecimal totalDistance;

    /**
     * 当日平均配速
     */
    @TableField("avg_pace")
    private BigDecimal avgPace;

    /**
     * 配速趋势(JSON数组)
     */
    @TableField("pace_trend")
    private String paceTrend;

    /**
     * 跑步等级：beginner, advanced, elite
     */
    @TableField("level")
    private String level;

    /**
     * 提升建议
     */
    @TableField("suggestion")
    private String suggestion;
}
